home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / comm / snup140.zip / SAMPLE.HST < prev    next >
INI File  |  1995-11-18  |  3KB  |  105 lines

  1. [Settings]
  2. Comment=This is a sample Host
  3. Phone=
  4. Emulation=5
  5. Speed=5
  6. DataBits=1
  7. StopBits=0
  8. Parity=0
  9. Prompt=$
  10. GetFile=sz -b {filename}
  11. SendFile=rz -b
  12. Protocol=5
  13. www=lynx
  14. Interrupt=^C
  15. Timeout=50
  16. TickleHost=-1
  17. HostInit=0
  18. UNIXLSColumn=0
  19. IsManualLogin=0
  20. ManualTimeout=45
  21. IsBusyRedial=-1
  22. RetryDelay=0
  23.  
  24. [login]
  25. n=71
  26. l1=# Please read the Help information on Login scripts
  27. l2=#   by pressing the "Help" button in the Host screen.
  28. l3=# There are some important issues discussed
  29. l4=#   there concerning C-shell use.
  30. l5=
  31. l6=# This is a sample LOGIN script
  32. l7=# -------------------------------------------------------------
  33. l8=# Anything following the "#" comment symbol
  34. l9=#   is ignored
  35. l10 send "^M"
  36. l11=# Valid script commands are:
  37. l12=#   dial
  38. l13=#   hangup
  39. l14=#   send "string"        # see notes below on strings
  40. l10=
  41. l15=#   send loginid
  42. l16=#   send password
  43. l17=#   send break
  44. l18=#   waitfor "string" nseconds
  45. l19=#   waitfor connect nseconds
  46. l20=#   waitfor prompt nseconds
  47. l21=#   delay nseconds
  48. l22=#   send "string1" waitfor "string2"  nseconds retry ntimes
  49. l23=#   send break waitfor "string" nseconds retry ntimes
  50. l24=#   input
  51. l25=#   input "prompt string"
  52. l26=
  53. l27=# Note on "strings":
  54. l28=#    strings can contain control keys
  55. l29=#         control keys are preceded by "^"
  56. l30=#    For instance, to send a Control-D:
  57. l31=#         send "^D"
  58. l32=#    More importantly, to send the string: "exit" followed
  59. l33=#        by a carriage return:
  60. l34=#        send "exit^M"
  61. l35=
  62. l36=# Examples of the retry commands:
  63. l37=# -------
  64. l38=#  send "^M" waitfor "login" 5 retry 10
  65. l39=#       means: send a carriage-return and wait for string "login" for 5 seconds
  66. l40=#       and retry this operation 10 times
  67. l41=
  68. l42=# The input command will pause and allow you to
  69. l43=#       input a string that will be sent immediately
  70. l44=#       This is useful for creating a login script
  71. l45=#       that allows for changing conditions.
  72. l46=
  73. l47=# =================================
  74. l48=#  Sample login script follows
  75. l49=# =================================
  76. l50=
  77. l51=dial
  78. l52=
  79. l53=waitfor connect 30
  80. l54=
  81. l55=delay 3    # give the host 3 seconds breathing room
  82. l56=
  83. l57=send "^M" waitfor "ogin"  3  retry 5
  84. l58=
  85. l59=#Notice that we wait for "ogin" instead of "login:"
  86. l60=#because the prompt on some systems is "Login" and on some it's "login"
  87. l61=
  88. l62=send loginid
  89. l63=send "^M"     # be sure to send the carriage-return
  90. l64=
  91. l65=waitfor "ssword" 20
  92. l66=send password
  93. l67=send "^M"
  94. l68=
  95. l69=waitfor prompt 30
  96. l70=
  97. l71=# ====================================
  98.  
  99. [logout]
  100. n=3
  101. l1=# This is a sample LOGOUT script
  102. l2=send "exit^M"
  103. l3=hangup
  104.  
  105.